Skip to content

Commit caac81c

Browse files
committed
Use localstack for testing
1 parent 63bc783 commit caac81c

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

examples/multiple-containers/.terraform.lock.hcl

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/multiple-containers/mock_provider.tf

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ provider "aws" {
1414
skip_requesting_account_id = true
1515
skip_metadata_api_check = true
1616
s3_use_path_style = true
17-
access_key = "mock_access_key"
18-
secret_key = "mock_secret_key"
17+
18+
endpoints {
19+
apigateway = "http://localstack:4566"
20+
cloudformation = "http://localstack:4566"
21+
cloudwatch = "http://localstack:4566"
22+
dynamodb = "http://localstack:4566"
23+
es = "http://localstack:4566"
24+
firehose = "http://localstack:4566"
25+
iam = "http://localstack:4566"
26+
kinesis = "http://localstack:4566"
27+
lambda = "http://localstack:4566"
28+
route53 = "http://localstack:4566"
29+
redshift = "http://localstack:4566"
30+
s3 = "http://localstack:4566"
31+
secretsmanager = "http://localstack:4566"
32+
ses = "http://localstack:4566"
33+
sns = "http://localstack:4566"
34+
sqs = "http://localstack:4566"
35+
ssm = "http://localstack:4566"
36+
stepfunctions = "http://localstack:4566"
37+
sts = "http://localstack:4566"
38+
}
1939
}

examples/test/mock_provider.tf

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ provider "aws" {
1414
skip_requesting_account_id = true
1515
skip_metadata_api_check = true
1616
s3_use_path_style = true
17-
access_key = "mock_access_key"
18-
secret_key = "mock_secret_key"
17+
18+
endpoints {
19+
apigateway = "http://localstack:4566"
20+
cloudformation = "http://localstack:4566"
21+
cloudwatch = "http://localstack:4566"
22+
dynamodb = "http://localstack:4566"
23+
es = "http://localstack:4566"
24+
firehose = "http://localstack:4566"
25+
iam = "http://localstack:4566"
26+
kinesis = "http://localstack:4566"
27+
lambda = "http://localstack:4566"
28+
route53 = "http://localstack:4566"
29+
redshift = "http://localstack:4566"
30+
s3 = "http://localstack:4566"
31+
secretsmanager = "http://localstack:4566"
32+
ses = "http://localstack:4566"
33+
sns = "http://localstack:4566"
34+
sqs = "http://localstack:4566"
35+
ssm = "http://localstack:4566"
36+
stepfunctions = "http://localstack:4566"
37+
sts = "http://localstack:4566"
38+
}
1939
}

0 commit comments

Comments
 (0)