Skip to content

(aws-batch): ComputeEnvironment should implement IConnectable #20983

Closed
@yoshizawa56

Description

Describe the feature

Once a ComputeEnvironment is created, there is no way to access the security group associated with it. We would like to implement IConectable interface in the ComputeEnvironment to more easily control connections from the batch container.

Use Case

Current implementation requires 3 steps below when creating batch with db connection.

  1. create a security group
  2. create the computing resource and associate with the security group created in 1.
  3. run db.connections.allowFrom(sg, ...)

If ComputeEnvironment implements IConnectable, it become more simple

  1. create computing environment without explicit security group association
  2. run db.connections.allowFrom(computeEnv, ...)

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.24

Environment details (OS name and version, etc.)

ubuntu 18.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-batchRelated to AWS Batchfeature-requestA feature should be added or improved.feature/service-integrationAdd functionality to an L2 construct to enable easier integration with another serviceneeds-designThis feature request needs additional design work.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions