sparse-intern-71089
10/19/2018, 7:51 PMcreamy-potato-29402
10/19/2018, 7:54 PMapiIntentRobotServiceAccount.metadata.apply(m => m.name)
creamy-potato-29402
10/19/2018, 7:54 PMget
does something else. .apply
is the method you want.cuddly-leather-18640
10/19/2018, 7:55 PMcreamy-potato-29402
10/19/2018, 7:56 PMcuddly-leather-18640
10/19/2018, 7:56 PMget
doesn’t give me the resourcecuddly-leather-18640
10/19/2018, 7:57 PMcreamy-potato-29402
10/19/2018, 7:59 PMwhite-balloon-205
creamy-potato-29402
10/19/2018, 7:59 PMget
should tell you what the method does.creamy-potato-29402
10/19/2018, 7:59 PMcreamy-potato-29402
10/19/2018, 8:00 PMcreamy-potato-29402
10/19/2018, 8:01 PMpulumi up
before, the preview is going to tell you that it’s going to create those resources.cuddly-leather-18640
10/19/2018, 8:02 PMpreview
isn’t seeing what I’ve already appliedcreamy-potato-29402
10/19/2018, 8:02 PMcreamy-potato-29402
10/19/2018, 8:04 PMk8s.core.v1.ServiceAccount.get('api-intent-robot')
to reference resources that already exist.cuddly-leather-18640
10/19/2018, 8:06 PMcuddly-leather-18640
10/19/2018, 8:06 PMglamorous-printer-66548
10/20/2018, 1:58 AMapiIntentRobotServiceAccount.metadata.apply(m => m.name)
you can just write:
import { getName} from '@solvvy/pulumi-util';
getName(apiIntentRobotServiceAccount);
🙂