pulumi-aws-native: rum - Create AppMonitor returns name instead of id

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already)

Issue details

I’m creating new rum AppMonitor:

new awsnative.rum.AppMonitor("name_of_app_monitor", { domain: "*.example.com" });

and getting output where id = “name_of_app_monitor”.

Based on documentation we should get all inputs and additionally unique ID for this managed resource: https://www.pulumi.com/registry/packages/aws-native/api-docs/rum/appmonitor/#outputs

Steps to reproduce

  1. Create AppMonitor
  2. Check output

Expected: ID Actual: Name

obraz

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 5
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Repro:

		monitor, err := rum.NewAppMonitor(ctx, "mon", &rum.AppMonitorArgs{
			Domain: pulumi.String("*.example.com"),
		})
		if err != nil {
			return err
		}

		ctx.Export("monid", monitor.ID())
		ctx.Export("monname", monitor.Name)

Outputs:

Outputs:
  + monid  : "mon-53833c9"
  + monname: "mon-53833c9"

Relevant cloudcontrol schema sections:

{
  ...
  "properties" : {
    "Name" : {...},
    "Domain" : {...},
    "CwLogEnabled" : {...},
    "Tags" : {...},
    "AppMonitorConfiguration" : {...}
  },
  "createOnlyProperties" : [ "/properties/Name" ],
  "primaryIdentifier" : [ "/properties/Name" ],
  ...
}

Ah my misunderstanding. I thought you were showing a screenshot of the id being returned correctly now. Will re-open.