sparse-intern-71089
07/13/2022, 8:33 AMrhythmic-branch-12845
07/13/2022, 8:37 AMlimited-rainbow-51650
07/13/2022, 8:44 AM"""An AWS Python Pulumi program"""
import pulumi
import pulumi_aws as aws
main = aws.route53.Zone("main", name="top.level.domain", tags={ "mananged_by": "Pulumi" })
pulumi.export('route53_Zone__main__name_servers', main.name_servers)
rhythmic-branch-12845
07/13/2022, 8:45 AMresource_name
isn’t even the real domain name; Pulumi adds some ridiculous suffix to it, so that the actual domain you create has some suffix like (in my case -2e9f86f
)… Seriously.
1. the doc should just give a proper example. You need to supply the name
parameter! (aws.route53.Zone(name=“example.com”, …)`)
2. the required resource_name
parameter is just a trap. What is it for? as mentioned, it does absolutely nothing useful (if it’s used for the actual domain name, then it produces a useless zone because of the suffix; if name=
is supplied, why would we care?rhythmic-branch-12845
07/13/2022, 8:46 AMlimited-rainbow-51650
07/13/2022, 8:47 AMresource_name
is how Pulumi identifies the resource under management in the state file. If you go through that page on Resource Names
I linked higher up, I hope it makes things clear for you. Do reach out if you would still have any questions.rhythmic-branch-12845
07/13/2022, 8:47 AMechoing-dinner-19531
07/13/2022, 1:02 PM