This message was deleted.
# general
s
This message was deleted.
f
I suggest using
awsx.cloudwatch.Dashboard
. It accepts Outputs in its args.
s
Hello again, i solved my trouble, i used the Pulumi Apply but into the function, i created the aws resource and used stringify, share my code
function CreateDashboard(ParametersDashboard) { ParametersDashboard.ASG_Name.apply(name => { const body = { widgets: [ { type: "metric", x: 0, y: 0, width: 12, height: 6, properties: { metrics: [ [ "AWS/EC2", "CPUUtilization", "AutoScalingGroupName", name ] ], period: 300, stat: "Average", region: "us-east-1", title: "CPU-Utilization-Auto-Scaling" } } ] } const main = new aws.cloudwatch.Dashboard("main", { dashboardBody: JSON.stringify(body), dashboardName: "Dashboard" }); }) }