Better way to set and detect aws_enabled flag.