Use DynamoDB to have a centralized location flag variable that can be accessed from multiple EC2 instances
- Create DynamoDB table, call it GlobalVariable.
- Primary key: name = id, type = number
- Sort key field: name = flag, type = String
- Add item to table using your value with key id # - example below uses 42.