I created a log group, though I would like to refe...
# aws
p
I created a log group, though I would like to reference the log group name
_lg.Name
in a task definition as a go
string
value. is there a way I can get the string Name out of
_lg.Name
?
Copy code
_lg, err := cloudwatch.NewLogGroup(ctx, "logs", &cloudwatch.LogGroupArgs{
			Name:            pulumi.String("logs"),
			RetentionInDays: <http://pulumi.Int|pulumi.Int>(30),
		})
		if err != nil {
			return err
		}
		ctx.Export("log group", _lg.Name)
c
You mean in the same file or in a different project/stack?
a
If the same stack, I assume you could just do
_lg.name
p
I need to pass _lg.Name in an ECS task definition as a String value
a
pulumi.String(_lg.Name)
?