Hi, How do I get the log group name as string in t...
# python
q
Hi, How do I get the log group name as string in this sample code. Not a python expert. Appreciate your help.
Copy code
log_group = aws.cloudwatch.LogGroup("/ecs/log-group")

json = json.dumps([
    {
		"name": "app",
		"image": "image",
		"portMappings": [{
			"containerPort": 8080,
			"hostPort": 8080,
			"protocol": "tcp"
		}],
		"logConfiguration": {
	        "logDriver": "awslogs",
	        "options": {
	          "awslogs-group": log_group.name,
	          "awslogs-region": "us-east-1",
	          "awslogs-stream-prefix": "ecs"
	        }
        }
	}
	]
)
I am getting
Copy code
TypeError: Object of type Output is not JSON serializable