testcontainers / testcontainers-java

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.org
MIT License
7.99k stars 1.64k forks source link

Missing Localstack services #3785

Closed ppalaga closed 1 year ago

ppalaga commented 3 years ago

Comparing the entries in org.testcontainers.containers.localstack.LocalStackContainer.Service with https://github.com/localstack/localstack/tree/master/localstack/services gives the following diff:

LocalStackContainer.Service  Localstack
  acm
API_GATEWAY apigateway
CLOUDFORMATION cloudformation
CLOUDWATCH cloudwatch
CLOUDWATCHLOGS logs
DYNAMODB dynamodb
DYNAMODB_STREAMS dynamodbstreams
  ec2
  es
  events
FIREHOSE firehose
IAM iam
KINESIS kinesis
KMS kms
LAMBDA awslambda
REDSHIFT redshift
ROUTE53 route53
S3 s3
SECRETSMANAGER secretsmanager
SES ses
SNS sns
SQS sqs
SSM ssm
STEPFUNCTIONS stepfunctions
STS sts

I wonder what needs to be done to support the missing services?

ppalaga commented 3 years ago

I'd like to try to fix this, but I'd like to understand the scope first. Could please somebody comment on the question above?

maciejwalkowiak commented 1 year ago

@ppalaga To use services that are missing in the Services enum, you can use LocalStackContainer.EnabledService instead.

For example LocalStackContainer.EnabledService.named("ec2").

eddumelendez commented 1 year ago

As @maciejwalkowiak mentioned, there is a way to do it and also, thanks to his contribution given that in latest versions of LocalStack, SERVICES is optional, this will not required anymore in the next release. See https://github.com/testcontainers/testcontainers-java/pull/6430