sparse-intern-71089
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.gentle-diamond-70147
01/30/2020, 8:38 PMlet 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.gentle-diamond-70147
01/30/2020, 8:39 PMname 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 PMgentle-diamond-70147
01/30/2020, 8:59 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by