README enhancement
This commit is contained in:
parent
7430fd5a76
commit
5bdd430720
|
@ -6,5 +6,23 @@ and let you scale resources by simply incrementing a number.
|
||||||
Additionally, variables can be used to expand a list of resources
|
Additionally, variables can be used to expand a list of resources
|
||||||
for use elsewhere.
|
for use elsewhere.
|
||||||
|
|
||||||
As with all examples, just copy and paste the example and run
|
To run, set the environment variables as below with correct values
|
||||||
`terraform apply` to see it work.
|
|
||||||
|
export AWS_ACCESS_KEY_ID="..."
|
||||||
|
export AWS_SECRET_ACCESS_KEY="..."
|
||||||
|
export AWS_DEFAULT_REGION="..."
|
||||||
|
|
||||||
|
Alternatively, you can configure the provider configuration where you invoke the module.
|
||||||
|
|
||||||
|
For example, you can use section similar to below.
|
||||||
|
|
||||||
|
# Specify the provider and access details
|
||||||
|
provider "aws" {
|
||||||
|
region = "${var.aws_region}"
|
||||||
|
access_key = "${var.access_key}"
|
||||||
|
secret_key = "${var.secret_key}"
|
||||||
|
}
|
||||||
|
|
||||||
|
Running the example
|
||||||
|
|
||||||
|
run `terraform apply` to see it work.
|
||||||
|
|
|
@ -14,5 +14,27 @@ After you run `terraform apply` on this configuration, it will
|
||||||
automatically output the DNS address of the ELB. After your instance
|
automatically output the DNS address of the ELB. After your instance
|
||||||
registers, this should respond with the default nginx web page.
|
registers, this should respond with the default nginx web page.
|
||||||
|
|
||||||
As with all examples, just copy and paste the example and run
|
To run, set the environment variables as below with correct values
|
||||||
`terraform apply` to see it work.
|
|
||||||
|
export AWS_ACCESS_KEY_ID="..."
|
||||||
|
export AWS_SECRET_ACCESS_KEY="..."
|
||||||
|
export AWS_DEFAULT_REGION="..."
|
||||||
|
|
||||||
|
Alternatively, you can configure the provider configuration where you invoke the module.
|
||||||
|
|
||||||
|
For example, you can use section similar to below.
|
||||||
|
|
||||||
|
# Specify the provider and access details
|
||||||
|
provider "aws" {
|
||||||
|
region = "${var.aws_region}"
|
||||||
|
access_key = "${var.access_key}"
|
||||||
|
secret_key = "${var.secret_key}"
|
||||||
|
}
|
||||||
|
|
||||||
|
Running the example
|
||||||
|
|
||||||
|
run `terraform apply -var 'key_name={your_aws_Key_name}' -var 'key_path={location_of_your_key_in_your_local_machine}'`
|
||||||
|
|
||||||
|
example
|
||||||
|
|
||||||
|
terraform apply -var 'key_name=terraform' -var 'key_path=/Users/jsmith/.ssh/terraform.pem
|
Loading…
Reference in New Issue