sparse-intern-71089
10/27/2020, 8:07 PMlittle-cartoon-10569
10/27/2020, 8:15 PMlittle-cartoon-10569
10/27/2020, 8:16 PMbrief-spoon-92183
10/27/2020, 8:18 PMlittle-cartoon-10569
10/27/2020, 8:20 PMlittle-cartoon-10569
10/27/2020, 8:20 PMlittle-cartoon-10569
10/27/2020, 8:20 PMlittle-cartoon-10569
10/27/2020, 8:22 PMbrief-spoon-92183
10/27/2020, 8:26 PMbillowy-army-68599
if config.enable_service_linked_role {
// create role here
}
brief-spoon-92183
10/27/2020, 8:29 PMbrief-spoon-92183
10/27/2020, 8:44 PM.pulumi
state lives on separate computers. And I can't share that state over S3, because I may work on different branches on different machines, so they must have their own copies of infrastructure.
Running the first deploy on each machine will result in Pulumi attempting to create that service role, but since I'm using the same AWS account, it will obviously fail.
I was hoping to check if service role already exists in my AWS account, and only create it if it doesn't. That works - partially. The problem is that the machine that initially created that service role will have the role's state in its .pulumi
folder, and second deploy will try to remove the service role if I don't return it from dependsOn
. And that's where this weird error I originally posted shows up.little-cartoon-10569
10/27/2020, 8:48 PMbillowy-army-68599
brief-spoon-92183
10/27/2020, 8:49 PMbrief-spoon-92183
10/27/2020, 8:50 PMlittle-cartoon-10569
10/27/2020, 8:50 PMbillowy-army-68599
little-cartoon-10569
10/27/2020, 8:51 PMlittle-cartoon-10569
10/27/2020, 8:51 PMbrief-spoon-92183
10/27/2020, 8:51 PMbrief-spoon-92183
10/27/2020, 8:52 PMbrief-spoon-92183
10/27/2020, 8:52 PMpulumi up
. Doing it on 2 of my machines causes the problems since it's 1 account.little-cartoon-10569
10/27/2020, 8:52 PMbrief-spoon-92183
10/27/2020, 8:52 PMlittle-cartoon-10569
10/27/2020, 8:53 PMbillowy-army-68599
get
in this particular case because it's a promise and isn't resolved until runtimebillowy-army-68599
little-cartoon-10569
10/27/2020, 8:54 PMbrief-spoon-92183
10/27/2020, 8:54 PMbillowy-army-68599
brief-spoon-92183
10/27/2020, 8:55 PMlittle-cartoon-10569
10/27/2020, 8:55 PMbrief-spoon-92183
10/27/2020, 8:55 PMbrief-spoon-92183
10/27/2020, 8:55 PMbillowy-army-68599
little-cartoon-10569
10/27/2020, 8:56 PMbillowy-army-68599
little-cartoon-10569
10/27/2020, 8:56 PMbrief-spoon-92183
10/27/2020, 8:56 PMbrief-spoon-92183
10/27/2020, 8:57 PMbrief-spoon-92183
10/27/2020, 8:57 PM