https://pulumi.com logo
Title
p

polite-sandwich-68547

05/05/2023, 9:03 AM
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
?
_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

calm-queen-58154

05/05/2023, 1:34 PM
You mean in the same file or in a different project/stack?
a

aloof-easter-15696

05/07/2023, 5:24 PM
If the same stack, I assume you could just do
_lg.name
p

polite-sandwich-68547

05/10/2023, 11:34 AM
I need to pass _lg.Name in an ECS task definition as a String value
a

aloof-easter-15696

05/21/2023, 4:29 PM
pulumi.String(_lg.Name)
?