How do i get the batch compute environment name when i create through cdk

Viewed 63

I am creating the AWS batch Job using CDK. I am creating the compute environment without giving giving the name.The compute environment gets created with random characters. I wanted to know how i can get the name of the compute environment to use in the job queue programatically.

Thanks

1 Answers

You should be able to get it with computeEnvironmentName. For example:

CfnOutput(self, "compute environment", value=computeEnv.compute_environment_name)
Related