proud-alarm-92546
06/14/2019, 7:34 PMlifecycle
block actually supported? how would it be passed? a lot of docu references it, but I also realize that docu is generated from the tf docs. https://pulumi.io/reference/pkg/nodejs/pulumi/aws/ecs/
You can utilize the generic Terraform resource lifecycle configuration block with ignore_changes to create an ECS service with an initial count of running instances, then ignore any changes to that count caused externally
...the example in the tf docs for this section shows the lifecycle block, but the example in the pulumi version lacks it, making me thing it's being excluded in the autogen somewhere.......white-balloon-205
ignoreChanges
property.proud-alarm-92546
06/14/2019, 7:37 PMwhite-balloon-205
proud-alarm-92546
06/14/2019, 7:39 PMlifecycle {
ignore_changes = ["desired_count"]
}
ignoreChanges { "desired_count" }
?white-balloon-205
proud-alarm-92546
06/14/2019, 7:45 PM{ parent: this, ignoreChanges: ['desired_count'] }
on line 139 results in
TSError: ⨯ Unable to compile TypeScript:
index.ts(139,5): error TS1136: Property assignment expected.
index.ts(140,1): error TS1005: ',' expected.
index.ts(140,2): error TS1128: Declaration or statement expected.
index.ts(139,5): error TS2345: Argument of type '{ parent: typeof globalThis; ignoreChanges: string[]; }' is not assignable to parameter of type 'ComponentResourceOptions'.
Types of property 'parent' are incompatible.
Type 'typeof globalThis' is missing the following properties from type 'Resource': urn, getProvider
thoughwhite-balloon-205
parent
- that’s an unrelated other resource option that you probably don’t need in your use case.proud-alarm-92546
06/14/2019, 7:47 PMdesiredCount: +config.containerCount!,
},
{ ignoreChanges: ['desired_count'] }
);