I want nodes to add their own ip to a list at a key, so that other nodes joining the cluster can discover them. The issue w/ using the supported CloudMap registration for doing this, is that doesn't seem very dynamic. I want the list to start off initially empty (for the first node), and then grow or shrink as appropriate.
Can an ECS service / ASG instance add its own IP to an a Systems Manager Parameter Store entry on bootup?
118 Views Asked by pdxleif At
1
There are 1 best solutions below
Related Questions in AMAZON-WEB-SERVICES
- "Access Denied" - User's Permissions to S3 Bucket
- Cohort analysis with Amazon Redshift / PostgreSQL
- Using Amazon KMS service on Heroku
- can't ssh in after cloning an EC2 instance on Amazon AWS
- Using HDFS with Apache Spark on Amazon EC2
- How can I access Mule ESB Community edition via browser?
- AWS EC2: Migrating from Windows to Linux Server
- AWS ELB Load Balancer: is it possible to set multiple session cookies?
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- Cloudfront stream only part of the video
- s3cmd not working as cron-task when echos/dates are added
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- InstanceProfile is required for creating cluster - create python function to install module
- How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
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-SYSTEMS-MANAGER
- Raspberry Pi update on boot using the AWS SSM service
- AWS CloudWatch logs only showing a single STDOUT output
- Configuring SNS Topic notification IAM Role in Maintenance Window tasks
- Can I access AWS Parameter store from Lightsail instance?
- AWS SSM Command Document - Constrain instances to choose from
- How to check if a parameter exists in Systems Manager from CloudFormation
- Pull encrypted data from AWS SSM Parameter store into terraform var file and pass it encrypted till it is called inside the terraform code
- How to use Get-SSMParameterList CmdLet to process parameters with a specific prefix
- Terraform Error with SSM Document - "Unknown Property"
- Is it absolutely necessary to explicitely mention region while building SsmClient using aws sdk for java v2?
- Using Amazon Systems Manager how to install AWS CLI for Linux
- How to download a file using from s3 private bucket without AWS cli
- AWS SSM Python / Boto3 Create Hybrid Activation ExpirationDate Type Error
- AWS SAM & Parameter Store: How to select parameter for the deployment into different environments
- Schedule of Run Command in AWS Systems Manager
Related Questions in AWS-CLOUDMAP
- Public DNS namespace for service discovery is not accessible on the internet
- How to properly reference resources in one CDK app from another?
- Service discovery on aws ECS EC2 using bridge network
- One AWS Cloud Map, Two ECS Clusters
- ECS Fargate service discovery
- Request mapping and wildcards in @aws-cdk/aws-apigatewayv2
- Communication between tasks in ECS with App Mesh and Cloudmap
- Cloudformation ECS / fargate - Run two containers in one task
- How can I read from different Amazon RDS instances using one endpoint?
- How can I send http request between ECS services by using App Mesh and Cloud Map
- Can an ECS service / ASG instance add its own IP to an a Systems Manager Parameter Store entry on bootup?
- How can you launch ECS Fargate containers having a public DNS?
- How to register RDS instance with CloudMap
- How do you use App Mesh with awsvpc and still have a lot of tasks
- ECS service communication with spring microservices and AWS cloudmap
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?
You can have a Daemon ECS service for this (not in replica mode). This make sure you have always a your program running once ECS container instance comes up.
Then you can enable container meta-data to get HostPublicIPv4Address.
And use AWS SDK to post to what-ever store you want to.
Upon trying this, it was observed that there is always an overlap when multiple instance come up. So you should better use proper database (which has transaction support) to store those IPs.This way two Daemon processes can fight for DB lock.