()
| 253 | } |
| 254 | |
| 255 | func init() { |
| 256 | cfg, err := config.LoadDefaultConfig( |
| 257 | context.Background(), |
| 258 | config.WithRegion("ap-east-1"), |
| 259 | ) |
| 260 | if err != nil { |
| 261 | logrus.Fatalf("Unable to load AWS config: %s", err) |
| 262 | } |
| 263 | common.CurrentRuntime = common.Runtimes.Lambda |
| 264 | init_config_from_aws_secret() |
| 265 | logrus.SetLevel(logrus.WarnLevel) |
| 266 | |
| 267 | init_db(cfg) |
| 268 | // init_sqs(cfg) |
| 269 | init_validators() |
| 270 | } |
| 271 | |
| 272 | func init_config_from_aws_secret() { |
| 273 | if initialized { |
nothing calls this directly
no test coverage detected