-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
312 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ go.sum | |
|
||
# Environment variables | ||
.env | ||
|
||
# Localstack | ||
volume/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
version: "3.8" | ||
services: | ||
localstack: | ||
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}" | ||
image: localstack/localstack | ||
ports: | ||
- "127.0.0.1:4566:4566" # LocalStack Gateway | ||
- "127.0.0.1:4510-4559:4510-4559" # external services port range | ||
environment: | ||
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/ | ||
- DEBUG=${DEBUG:-0} | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
region = "eu-west-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-west-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
// Variables are required to pass them via Terratest | ||
// on fixtures creation | ||
variable "this_vpc_id" {} | ||
|
||
variable "peer_vpc_id" {} | ||
|
||
variable "aws_this_access_key" { | ||
description = "AWS Access Key for requester account" | ||
} | ||
|
||
variable "aws_this_secret_key" { | ||
description = "AWS Secret Key for requester account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
region = "eu-west-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-west-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
alias = "this" | ||
region = "eu-west-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
alias = "this" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-west-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} | ||
|
||
provider "aws" { | ||
alias = "peer" | ||
region = "eu-central-1" | ||
access_key = var.aws_peer_access_key | ||
secret_key = var.aws_peer_secret_key | ||
alias = "peer" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-central-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
// Variables are required to pass them via Terratest | ||
// on fixtures creation | ||
variable "this_vpc_id" {} | ||
|
||
variable "peer_vpc_id" {} | ||
|
||
variable "aws_this_access_key" { | ||
description = "AWS Access Key for requester account" | ||
} | ||
|
||
variable "aws_this_secret_key" { | ||
description = "AWS Secret Key for requester account" | ||
} | ||
|
||
variable "aws_peer_access_key" { | ||
description = "AWS Access Key for accepter account" | ||
} | ||
|
||
variable "aws_peer_secret_key" { | ||
description = "AWS Secret Key for accepter account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
alias = "this" | ||
region = "ap-southeast-2" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
alias = "this" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "ap-southeast-2" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} | ||
|
||
provider "aws" { | ||
alias = "peer" | ||
region = "ap-southeast-2" | ||
access_key = var.aws_peer_access_key | ||
secret_key = var.aws_peer_secret_key | ||
alias = "peer" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "ap-southeast-2" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
// Variables are required to pass them via Terratest | ||
// on fixtures creation | ||
variable "this_vpc_id" {} | ||
|
||
variable "peer_vpc_id" {} | ||
|
||
variable "aws_this_access_key" { | ||
description = "AWS Access Key for requester account" | ||
} | ||
|
||
variable "aws_this_secret_key" { | ||
description = "AWS Secret Key for requester account" | ||
} | ||
|
||
variable "aws_peer_access_key" { | ||
description = "AWS Access Key for accepter account" | ||
} | ||
|
||
variable "aws_peer_secret_key" { | ||
description = "AWS Secret Key for accepter account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
alias = "this" | ||
region = var.this_region != "" ? var.this_region : "eu-west-2" | ||
assume_role { | ||
role_arn = var.this_assume_role_arn != "" ? var.this_assume_role_arn : null | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
access_key = var.aws_this_access_key != "" ? var.aws_this_access_key : null | ||
secret_key = var.aws_this_secret_key != "" ? var.aws_this_secret_key : null | ||
region = "eu-west-2" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} | ||
|
||
provider "aws" { | ||
alias = "peer" | ||
region = var.peer_region != "" ? var.peer_region : "eu-central-1" | ||
assume_role { | ||
role_arn = var.peer_assume_role_arn != "" ? var.peer_assume_role_arn : null | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
access_key = var.aws_peer_access_key != "" ? var.aws_peer_access_key : null | ||
secret_key = var.aws_peer_secret_key != "" ? var.aws_peer_secret_key : null | ||
region = "eu-central-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
alias = "this" | ||
region = "eu-west-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
alias = "this" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-west-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} | ||
|
||
provider "aws" { | ||
alias = "peer" | ||
region = "eu-central-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
alias = "peer" | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-central-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
// Variables are required to pass them via Terratest | ||
// on fixtures creation | ||
variable "this_vpc_id" {} | ||
|
||
variable "peer_vpc_id" {} | ||
|
||
variable "aws_this_access_key" { | ||
description = "AWS Access Key for requester account" | ||
} | ||
|
||
variable "aws_this_secret_key" { | ||
description = "AWS Secret Key for requester account" | ||
} |
16 changes: 13 additions & 3 deletions
16
examples/single-account-single-region-with-options/provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
// This provider example is designed to work with Localstack. | ||
// You need to have a real AWS provider configuration for the production usage. | ||
provider "aws" { | ||
region = "eu-west-1" | ||
access_key = var.aws_this_access_key | ||
secret_key = var.aws_this_secret_key | ||
endpoints { | ||
ec2 = "http://localhost:4566" | ||
s3 = "http://localhost:4566" | ||
sts = "http://localhost:4566" | ||
} | ||
region = "eu-west-1" | ||
access_key = "null" | ||
secret_key = "null" | ||
skip_credentials_validation = true | ||
skip_metadata_api_check = true | ||
skip_requesting_account_id = true | ||
} |
17 changes: 0 additions & 17 deletions
17
examples/single-account-single-region-with-options/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
// Variables are required to pass them via Terratest | ||
// on fixtures creation | ||
variable "this_vpc_id" {} | ||
|
||
variable "peer_vpc_id" {} | ||
|
||
variable "aws_this_access_key" { | ||
description = "AWS Access Key for requester account" | ||
} | ||
|
||
variable "aws_this_secret_key" { | ||
description = "AWS Secret Key for requester account" | ||
} | ||
|
||
variable "aws_peer_access_key" { | ||
description = "AWS Access Key for accepter account" | ||
} | ||
|
||
variable "aws_peer_secret_key" { | ||
description = "AWS Secret Key for accepter account" | ||
} |
Oops, something went wrong.