Skip to content

Commit e665be2

Browse files
author
Ian Ellis
committed
rejigged docker-compose with double quotes, switched terraform to use 127.0.0.1 but removed the elasticsearch by removing .tf suffix. Now terraform apply works with the docker-compose up
1 parent c38c605 commit e665be2

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
ports:
66
- "4566:4566" # Expose LocalStack's services on port 4566
77
environment:
8-
- SERVICES=acm,acm_pca,amplify,apigateway,apigatewayv2,appconfig,appconfigdata,appsync,athena,autoscaling,backup,batch,ce,cloudcontrol,cloudformation,cloudfront,cloudtrail,cloudwatch,codecommit,cognito-identity,cognito-idp,dms,docdb,dynamodb,dynamodbstreams,ec2,ecr,ecs,efs,eks,elasticache,elasticbeanstalk,elbv2,emr,emr-serverless,es,events,firehose,fis,glacier,glue,iam,identitystore,iot,iot-data,iotanalytics,iotwireless,kafka,kinesis,kinesisanalytics,kinesisanalyticsv2,kms,lakeformation,lambda,logs,managedblockchain,mediaconvert,mediastore,mq,mwaa,neptune,opensearch,organizations,pi,qldb,qldb-session,rds,rds-data,redshift,redshift-data,resource-groups,resourcegroupstaggingapi,route53,route53resolver,s3,s3control,sagemaker,sagemaker-runtime,secretsmanager,serverlessrepo,servicediscovery,ses,sesv2,sns,sqs,ssm,stepfunctions,sts,timestream-query,timestream-write,transcribe,wafv2,xray # Specify the AWS services you want to emulate (comma-separated)
9-
- DEBUG=1 # Enable debug mode (optional)
10-
- USE_SSL=0 # Disable SSL (optional)
11-
- AWS_DEFAULT_REGION=eu-west-2
8+
- SERVICES="acm,acm_pca,amplify,apigateway,apigatewayv2,appconfig,appconfigdata,appsync,athena,autoscaling,backup,batch,ce,cloudcontrol,cloudformation,cloudfront,cloudtrail,cloudwatch,codecommit,cognito-identity,cognito-idp,dms,docdb,dynamodb,dynamodbstreams,ec2,ecr,ecs,efs,eks,elasticache,elasticbeanstalk,elbv2,emr,emr-serverless,es,events,firehose,fis,glacier,glue,iam,identitystore,iot,iot-data,iotanalytics,iotwireless,kafka,kinesis,kinesisanalytics,kinesisanalyticsv2,kms,lakeformation,lambda,logs,managedblockchain,mediaconvert,mediastore,mq,mwaa,neptune,opensearch,organizations,pi,qldb,qldb-session,rds,rds-data,redshift,redshift-data,resource-groups,resourcegroupstaggingapi,route53,route53resolver,s3,s3control,sagemaker,sagemaker-runtime,secretsmanager,serverlessrepo,servicediscovery,ses,sesv2,sns,sqs,ssm,stepfunctions,sts,timestream-query,timestream-write,transcribe,wafv2,xray"
9+
- DEBUG="1"
10+
- USE_SSL="0"
11+
- AWS_DEFAULT_REGION="eu-west-2"

terraform/elasticsearch.tf renamed to terraform/elasticsearch

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "aws_elasticsearch_domain" "example_domain" {
2121
Resource = "arn:aws:es:${var.aws_region}:${var.aws_account_id}:domain/my-elastic-domain/*",
2222
Condition = {
2323
IpAddress : {
24-
"aws:SourceIp" : "192.168.0.10"
24+
"aws:SourceIp" : "127.0.0.1"
2525
}
2626
}
2727
}
@@ -32,4 +32,3 @@ resource "aws_elasticsearch_domain" "example_domain" {
3232
output "elasticsearch_endpoint" {
3333
value = aws_elasticsearch_domain.example_domain.endpoint
3434
}
35-

terraform/provider.tf

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ provider "aws" {
99
s3_use_path_style = true
1010

1111
endpoints {
12-
apigateway = "http://nexus.ellisbs.co.uk:4566"
13-
apigatewayv2 = "http://nexus.ellisbs.co.uk:4566"
14-
cloudformation = "http://nexus.ellisbs.co.uk:4566"
15-
cloudwatch = "http://nexus.ellisbs.co.uk:4566"
16-
cognitoidp = "http://nexus.ellisbs.co.uk:4566"
17-
cognitoidentity = "http://nexus.ellisbs.co.uk:4566"
18-
dynamodb = "http://nexus.ellisbs.co.uk:4566"
19-
ec2 = "http://nexus.ellisbs.co.uk:4566"
20-
es = "http://nexus.ellisbs.co.uk:4566"
21-
elasticache = "http://nexus.ellisbs.co.uk:4566"
22-
firehose = "http://nexus.ellisbs.co.uk:4566"
23-
iam = "http://nexus.ellisbs.co.uk:4566"
24-
kinesis = "http://nexus.ellisbs.co.uk:4566"
25-
lambda = "http://nexus.ellisbs.co.uk:4566"
26-
rds = "http://nexus.ellisbs.co.uk:4566"
27-
redshift = "http://nexus.ellisbs.co.uk:4566"
28-
route53 = "http://nexus.ellisbs.co.uk:4566"
29-
s3 = "http://nexus.ellisbs.co.uk:4566"
30-
secretsmanager = "http://nexus.ellisbs.co.uk:4566"
31-
ses = "http://nexus.ellisbs.co.uk:4566"
32-
sns = "http://nexus.ellisbs.co.uk:4566"
33-
sqs = "http://nexus.ellisbs.co.uk:4566"
34-
ssm = "http://nexus.ellisbs.co.uk:4566"
35-
stepfunctions = "http://nexus.ellisbs.co.uk:4566"
36-
sts = "http://nexus.ellisbs.co.uk:4566"
12+
apigateway = "http://127.0.0.1:4566"
13+
apigatewayv2 = "http://127.0.0.1:4566"
14+
cloudformation = "http://127.0.0.1:4566"
15+
cloudwatch = "http://127.0.0.1:4566"
16+
cognitoidp = "http://127.0.0.1:4566"
17+
cognitoidentity = "http://127.0.0.1:4566"
18+
dynamodb = "http://127.0.0.1:4566"
19+
ec2 = "http://127.0.0.1:4566"
20+
es = "http://127.0.0.1:4566"
21+
elasticache = "http://127.0.0.1:4566"
22+
firehose = "http://127.0.0.1:4566"
23+
iam = "http://127.0.0.1:4566"
24+
kinesis = "http://127.0.0.1:4566"
25+
lambda = "http://127.0.0.1:4566"
26+
rds = "http://127.0.0.1:4566"
27+
redshift = "http://127.0.0.1:4566"
28+
route53 = "http://127.0.0.1:4566"
29+
s3 = "http://127.0.0.1:4566"
30+
secretsmanager = "http://127.0.0.1:4566"
31+
ses = "http://127.0.0.1:4566"
32+
sns = "http://127.0.0.1:4566"
33+
sqs = "http://127.0.0.1:4566"
34+
ssm = "http://127.0.0.1:4566"
35+
stepfunctions = "http://127.0.0.1:4566"
36+
sts = "http://127.0.0.1:4566"
3737
}
3838
}

0 commit comments

Comments
 (0)