forked from hpcc-systems/MAF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initLocalstack.tf
40 lines (35 loc) · 896 Bytes
/
initLocalstack.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
provider "aws" {
profile = "default"
region = "us-east-1"
access_key = "1234"
secret_key = "xyz"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_use_path_style = true
endpoints {
dynamodb = "http://localhost:4566"
s3 = "http://localhost:4566"
sqs = "http://localhost:4566"
}
}
resource "aws_s3_bucket" "testBucket" {
bucket = "test-bucket"
}
resource "aws_dynamodb_table" "test-table" {
name = "testtable"
billing_mode = "PROVISIONED"
read_capacity = 2
write_capacity = 2
hash_key = "label"
attribute {
name = "label"
type = "S"
}
}
resource "aws_sqs_queue" "testQueue1" {
name = "testQueue"
}
resource "aws_sqs_queue" "testQueue2" {
name = "testQueue2"
}