Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ See more at:

Full deployment examples are available in the deployments directory.

## Access AWS Resources via TYK Terraform Modules
This modules include AWS as a cloud provider, so that if you want to access resources, you should add you credentials tou your `~/.aws/credentials` shown as below ;

```
[myprofile]
aws_access_key_id = AWS_ACCESS_KEY_ID
aws_secret_access_key = AWS_SECRET_KEY_ID

```
and than you set the `my_profile` to the profile_name variable .
3 changes: 1 addition & 2 deletions deployments/poc-aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ locals {
provider "aws" {
version = "~> 1.60"
region = "${var.aws_region}"
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
profile = "${var.profile}"
}

resource "random_string" "gateway_secret" {
Expand Down
10 changes: 0 additions & 10 deletions deployments/poc-aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ variable "aws_region" {
description = "AWS region to use for Tyk deployment"
}

variable "aws_access_key" {
type = "string"
description = "AWS access key to use for Tyk deployment"
}

variable "aws_secret_key" {
type = "string"
description = "AWS secret key to use for Tyk deployment"
}

variable "aws_azs" {
type = "list"
description = "AWS availability zones for Tyk deployment"
Expand Down
4 changes: 2 additions & 2 deletions deployments/pro/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ locals {
provider "aws" {
version = "~> 1.60"
region = "${var.aws_region}"
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
profile = "${var.profile}"

}

resource "random_string" "gateway_secret" {
Expand Down
10 changes: 0 additions & 10 deletions deployments/pro/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ variable "aws_region" {
description = "AWS region to use for Tyk deployment"
}

variable "aws_access_key" {
type = "string"
description = "AWS access key to use for Tyk deployment"
}

variable "aws_secret_key" {
type = "string"
description = "AWS secret key to use for Tyk deployment"
}

variable "vpc_id" {
type = "string"
description = "VPC to use for Tyk deployment"
Expand Down