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
706 Views Asked by Daniel Herranz At
1
There are 1 best solutions below
Related Questions in AMAZON-ECS
- How to use cloudformation to create an ecs cluster?
- AWS ECS container instance
- Why can't my ECS service register available EC2 instances with my ELB?
- AWS ECS - Unable to specify service name in cloudformation template
- Running multiple ECS tasks based on same task definitions in one host, using different ports
- Elastic BeanStalk MultiContainer docker fails
- How does a multi container Elasticbeanstalk environment update it's docker containers?
- Elastic beanstalk vs ECS for multi container docker
- How to do container rollbacks using a multi docker configuration on elasticbeanstalk
- How to dynamically or pre-generate ansible variables from an existing file in a specific format for AWS ECS
- How to run AWS ECS Task overriding environment variables
- How to write files from Docker image to EFS?
- Storage requirement when using for AWS ECS
- AWS when we have to update task definition
- AWS ECS and Load Balancing
Related Questions in AMAZON-CLOUDWATCH
- Are earlier historical metrics published to CloudWatch Delayed?
- A sane way to set up CloudWatch logs (awslogs-agent)
- aws cloudwatch metric overwrite/override
- Cloudwatch Agent errors with: No option 'file' in section: 'loggers'
- Dynamically create cronjobs in AWS
- Cloudwatch boto3 put_log_events giving incorrect return
- Monitoring memory usage in AWS CloudWatch for Windows instance
- AWS - Using CloudWatch to trigger script on ec2 instance
- Checking if process runtime with AWS Cloudwatch
- How to pass map to AWS cloudwatch
- Unable to monitor Free Disk Space for Windows Instances using Custom CloudWatch Metrics
- Monitoring Memory Usage for multiple EC2 instances
- How can we monitor a process with cloudwatch
- Wrong event time in CloudWatch log events
- Unable to push Server Work Queue Length custom metric to Cloud Watch
Related Questions in AWS-CDK
- What is the difference between a CDK construct and a regular class?
- Create Network Load Balancer (NLB) using existing EC2 instances with AWS-CDK
- CDK elbv2.ApplicationLoadBalancer.add_security_group doesn't work
- Understanding AWS-Config Rules and Confuguration Changes
- How to make k8s Pod (generated by Jenkins) use Service account IAM role to access AWS resources
- How to reference a CloudWatch metric created by container insights for ECS/Fargate
- How do you deploy existing deployment artifacts through codepipeline?
- Finding Canonical ID of the account using CDK
- AWS CodePipeline BuildAction not detecting buildspec.yml secondary artifacts
- How to extend AWS CDK with non AWS Resources during deploy
- How do I get a list of subnet IDs from one stack to another using SSM when StringListParameter doesn't work?
- AWS CDK - Linux EC2 Instance Cloudformation Init - /opt/aws/bin/cfn-signal doesn't run properly after reboot
- How to configure AWS CDK ApplicationLoadBalancedFargateService to log parsed JSON lines with Firelens and Firebit
- How to get EC2 ID and Private IP from EC2 Autoscaling Group using AWS CDK
- How to reference an ACM Certificate using the "Domain name" with the AWS CDK
Related Questions in AWS-BATCH
- Create AWS Batch Managed Compute Environment passing UserData to Container Instances
- AWS EC2 (batch) throttling connection?
- AWS Batch, how to ask for GPUs
- Is it possbile to create a aws cron expression that will schedule the aws batch job to run on 1st, 2nd, and 3rd tuesday of every month?
- ssh into AWS Batch jobs
- How to set shared memory size on aws job definition?
- Get AWS Batch cluster name CDK
- troubleshoot failed cloudwatch events
- AWS Batch Job stuck on RUNNABLE
- AWS Batch: Guarantee only one instance of a Job Definition is running at a time
- Boto3: no logStreamName from AWS batch
- Batch workloads vs calls to microservices
- Editing the details of an EventBridge rule
- How do I detach the HuggingFace SageMaker training?
- How to run AWS Batch jobs that uses managed EC2 compute environment that is based on a custom AMI?
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 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.