60 lines
2.0 KiB
Terraform
60 lines
2.0 KiB
Terraform
provider "aws" {
|
|
region = "us-east-1"
|
|
|
|
# localstack config
|
|
access_key = "test"
|
|
secret_key = "test"
|
|
skip_credentials_validation = true
|
|
skip_metadata_api_check = true
|
|
skip_requesting_account_id = true
|
|
|
|
# localstack endpoints https://docs.localstack.cloud/aws/integrations/infrastructure-as-code/terraform/#:~:text=tflocal%20is%20a%20small%20wrapper,unmodified%20Terraform%20scripts%20against%20LocalStack.
|
|
endpoints {
|
|
apigateway = "http://192.168.86.96:4566"
|
|
apigatewayv2 = "http://192.168.86.96:4566"
|
|
cloudformation = "http://192.168.86.96:4566"
|
|
cloudwatch = "http://192.168.86.96:4566"
|
|
dynamodb = "http://192.168.86.96:4566"
|
|
ec2 = "http://192.168.86.96:4566"
|
|
es = "http://192.168.86.96:4566"
|
|
elasticache = "http://192.168.86.96:4566"
|
|
firehose = "http://192.168.86.96:4566"
|
|
iam = "http://192.168.86.96:4566"
|
|
kinesis = "http://192.168.86.96:4566"
|
|
kms = "http://192.168.86.96:4566"
|
|
lambda = "http://192.168.86.96:4566"
|
|
rds = "http://192.168.86.96:4566"
|
|
redshift = "http://192.168.86.96:4566"
|
|
route53 = "http://192.168.86.96:4566"
|
|
s3 = "http://192.168.86.96:4566"
|
|
secretsmanager = "http://192.168.86.96:4566"
|
|
ses = "http://192.168.86.96:4566"
|
|
sns = "http://192.168.86.96:4566"
|
|
sqs = "http://192.168.86.96:4566"
|
|
ssm = "http://192.168.86.96:4566"
|
|
stepfunctions = "http://192.168.86.96:4566"
|
|
sts = "http://192.168.86.96:4566"
|
|
}
|
|
|
|
default_tags {
|
|
tags = {
|
|
Environment = "LocalStack"
|
|
TerraformDir = join("/", reverse(slice(reverse(split("/", path.cwd)), 0, 2)))
|
|
LocalStack = true
|
|
}
|
|
}
|
|
}
|
|
|
|
terraform {
|
|
required_version = ">= 1.11.0"
|
|
required_providers {
|
|
aws = {
|
|
source = "hashicorp/aws"
|
|
version = ">= 6.0"
|
|
}
|
|
archive = {
|
|
source = "hashicorp/archive"
|
|
version = "2.7.1"
|
|
}
|
|
}
|
|
} |