I'm trying to create an alarm by using memory utilization in AWS Batch. However, the metric related to this service is under the ECS Cluster that is automatically created when creating a compute environment. I'm trying to provide this cluster name to the alarm dimension, but I'm unable to access the cluster name using CDK. I've researched in the CDK API and it doesn't seem to be possible. Does anybody now how this can be done?
Get AWS Batch cluster name CDK
711 Views Asked by Daniel Herranz At
1
There are 1 best solutions below
Related Questions in AMAZON-ECS
- Canary deployment using spinnaker in AWS ECS
- AWS CloudFormation stuck at CreateTags
- AWS ECS agent does not start in EC2 instance
- Migrate AWS ECS cluster IPV4 to IPV6
- Mysql error on AWS ECS: [InnoDB] Unable to lock ./ibdata1 error
- Log retation setting for ECS
- No GPU EC2 instances associated with AWS Batch
- How to configure CPU utilized metric for ECS in AWS for Alarm?
- Connection services in different containers in the same ec2 instance
- How to get ECS task to communicate with cloudwatch agent?
- CodePipeline Deploy Stage missing AWSLambda/ automatically update running ecs tasks
- bot3 ecs.execute_command: Task Identifier is invalid
- Step scaling option disabled for ECS Fargate service
- APCu cache in docker container
- Loki on ecs crashes when cleaning up chunks
Related Questions in AMAZON-CLOUDWATCH
- Setting up alarms for Cloudwatch Insight Queries
- Sending metrics data from on-premise Linux server to Cloudwatch
- Log retation setting for ECS
- How to configure CPU utilized metric for ECS in AWS for Alarm?
- How to get ECS task to communicate with cloudwatch agent?
- eb CLI won't download logs files from /var/log after setup amazon cloudwatch agent
- Step scaling option disabled for ECS Fargate service
- Log ruby on rails application running in phusion passenger to aws cloudwatch
- AWS CloudWatch parsing logs
- How can I set the log_stream_prefix to get the cloudwatch data from lambda
- Does Vercel has any features to moniter static asset response time?
- Custom metrics script on window instances in two different regions in two different account
- Can you parse then query on the parse value in CloudWatch Insights?
- Cloudwatch Alarm 4xx Errors API Gateway Terraform
- A way to get sum of continous points in cloudwatch for a sparse graph
Related Questions in AWS-CDK
- How to set custom Origin Name in AWS CDK for CloudFront
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- Log retation setting for ECS
- Struggling with Route53 public hosted zones in a multi-account environment
- How to get full arn when writing secret based IAM policy in AWS CDK
- AWS Step functions: DistrbituedMap itemReader get bucket and key at runtime from state input in CDK
- Encountering Deployment Error with AWS CDK: Despite Bootstrapping
- ALLOW_ADMIN_USER_PASSWORD_AUTH not getting set in AWS CDK
- JSII ProcessBuilder cannot run program
- EC2 instance being terminated after setting up lifecycle hooks
- Debugging Python AWS CDK application in VSCode
- state.Retry is not iterable
- How to get the exist cluster by name?
- CDK: Remove dependency from DependsOn
- Combining Container, AMI, and ECS builds/deployments in CDK?
Related Questions in AWS-BATCH
- No GPU EC2 instances associated with AWS Batch
- Selenium script behaves differently in AWS Batch environment compared to local Windows PC
- Grpc throws error on AWS Batch Job:- Exception occured <_InactiveRpcError of RPC that terminated with:status = StatusCode.UNAVAILABLE
- What service quotas could prevent scaling AWS Batch?
- Issue to hit the endpoint of AWS docker build/push/run
- Docker container using micromamba base image is not working on AWS Batch (Issue with /usr/local/bin/_entrypoint.sh)
- AWS Batch, Real Time rendering - decrease tasks' "Pending" time
- Fetching credentials in an AWS Batch job
- Error in running nfcore-sarek in EC2 by using aws batch
- Nextflow crash on AWS Batch with transition error
- AWS - CloudFormation "Waiting for association to be applied."
- AWS Batch in Privileged mode urllib3.exceptions.ConnectTimeoutError + botocore.exceptions.ConnectTimeoutError
- Amazon ECS task definitions should have secure networking modes and user definitions
- how to pass integers and list of strings and retrieve them as parameters in AWS Batch using python?
- Attaching specific EBS volume given Batch job details
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't know whether you can find the ECS Cluster created by Batch using CDK. Batch hides the details about the work that it does on the backend (i.e. creating an ECS Cluster).
My only guess is that you can write custom code to list the ECS Clusters in your account and match one of the clusters with the name you expect to see. I think Batch initializes the cluster when you initialize the Batch Compute Environment, but I'm not sure whether there is a lag in the timing.