Error `cannot unmarshal array into Go struct fiel...
# python
f
Error
cannot unmarshal array into Go struct field LogConfiguration.LogConfiguration.Options of type map[string]*string
would hint that the options is a dict() (aka map) but I cannot get that to work either
b
Indeed, it looks like the API expects a dict[string, string] in the options parameter. Here's an example API call using the same type: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html#create_awslogs_loggroups Did you try
options={"awslogs_group": "nginx-container"}
?