cold-motorcycle-78950
01/30/2020, 12:40 PMgentle-diamond-70147
01/30/2020, 8:37 PMname
as in this bit of code:
let res = new Resource(name, args, options);
When defined this way, Pulumi will auto-name the physical resource (e.g. the "resource name") appending a random suffix. This is generally helpful for resources that require unique names and is explain in more https://www.pulumi.com/docs/troubleshooting/faq/#why-do-resource-names-have-random-hex-character-suffixes.let role = new aws.iam.Role("my-role");
The "name" and "logical name" of this resource is my-role
. The "resource name" or "physical name" of this resource at AWS would end up being something like my-role-d7c2fa0
.name
property as in:
let role = new aws.iam.Role("my-role", {
name: "my-role",
});
cold-motorcycle-78950
01/30/2020, 8:57 PMname
( see https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/ec2/instance.ts#L259 ) but in python it’s resource_name
( see https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/ec2/instance.py#L233 ) which made me reason that name
== resource_name
. But I guess that’s not the case?gentle-diamond-70147
01/30/2020, 8:58 PM