-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-batch): ComputeEnvironment should implement IConnectable #20983
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-batchRelated to AWS BatchRelated to AWS Batchfeature-requestA feature should be added or improved.A feature should be added or improved.feature/service-integrationAdd functionality to an L2 construct to enable easier integration with another serviceAdd functionality to an L2 construct to enable easier integration with another serviceneeds-designThis feature request needs additional design work.This feature request needs additional design work.
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-batchRelated to AWS BatchRelated to AWS Batchfeature-requestA feature should be added or improved.A feature should be added or improved.feature/service-integrationAdd functionality to an L2 construct to enable easier integration with another serviceAdd functionality to an L2 construct to enable easier integration with another serviceneeds-designThis feature request needs additional design work.This feature request needs additional design work.
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.
db.connections.allowFrom(sg, ...)If ComputeEnvironment implements IConnectable, it become more simple
db.connections.allowFrom(computeEnv, ...)Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.24
Environment details (OS name and version, etc.)
ubuntu 18.04