diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json
index 738e3d79d3..5963cd2329 100644
--- a/provider/cmd/pulumi-resource-aws/schema.json
+++ b/provider/cmd/pulumi-resource-aws/schema.json
@@ -246624,7 +246624,7 @@
},
"forceNewDeployment": {
"type": "boolean",
- "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\n"
+ "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\nWhen using the forceNewDeployment property you also need to configure the triggers property.\n"
},
"healthCheckGracePeriodSeconds": {
"type": "integer",
@@ -246782,7 +246782,7 @@
},
"forceNewDeployment": {
"type": "boolean",
- "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\n"
+ "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\nWhen using the forceNewDeployment property you also need to configure the triggers property.\n"
},
"healthCheckGracePeriodSeconds": {
"type": "integer",
@@ -246929,7 +246929,7 @@
},
"forceNewDeployment": {
"type": "boolean",
- "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\n"
+ "description": "Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.\nWhen using the forceNewDeployment property you also need to configure the triggers property.\n"
},
"healthCheckGracePeriodSeconds": {
"type": "integer",
diff --git a/provider/doc_edits.go b/provider/doc_edits.go
index aa1f798b91..e551eb3ace 100644
--- a/provider/doc_edits.go
+++ b/provider/doc_edits.go
@@ -27,7 +27,8 @@ import (
func editRules(defaults []tfbridge.DocsEdit) []tfbridge.DocsEdit {
return append(defaults,
fixUpCloudFrontPublicKey,
- fixUpEcsServiceName,
+ fixUpEcsServiceNameTrigger,
+ fixUpEcsServiceNameForceNewDeployment,
// This fixes up strings such as:
//
// name = "terraform-kinesis-firehose-os",
@@ -80,13 +81,25 @@ var fixUpCloudFrontPublicKey = targetedSimpleReplace("cloudfront_public_key.html
"Instead, it is recommended to use Pulumi autonaming by leaving this property unset (default behavior) "+
"or set the `namePrefix` property to allow the provider to autoname the resource.\n")
-var fixUpEcsServiceName = targetedSimpleReplace("ecs_service.html.markdown",
+var fixUpEcsServiceNameTrigger = targetedSimpleReplace("ecs_service.html.markdown",
"* `triggers` - (Optional) Map of arbitrary keys and values that, when changed, will trigger "+
"an in-place update (redeployment). Useful with `plantimestamp()`. See example above.\n",
"* `triggers` - (Optional) Map of arbitrary keys and values that, when changed, will trigger "+
"an in-place update (redeployment). Useful with `plantimestamp()`. "+
"When using the triggers property you also need to set the forceNewDeployment property to True.\n")
+var fixUpEcsServiceNameForceNewDeployment = targetedSimpleReplace(
+ "ecs_service.html.markdown",
+ "* `force_new_deployment` - (Optional) Enable to force a new task deployment of the service. "+
+ "This can be used to update tasks to use a newer Docker image with same image/tag combination "+
+ "(e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy "+
+ "`ordered_placement_strategy` and `placement_constraints` updates.",
+ "* `force_new_deployment` - (Optional) Enable to force a new task deployment of the service. "+
+ "This can be used to update tasks to use a newer Docker image with same image/tag combination "+
+ "(e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy "+
+ "`ordered_placement_strategy` and `placement_constraints` updates.\n"+
+ "When using the forceNewDeployment property you also need to configure the triggers property.\n")
+
func reReplace(from string, to string) tfbridge.DocsEdit {
fromR, toB := regexp.MustCompile(from), []byte(to)
return tfbridge.DocsEdit{
diff --git a/sdk/dotnet/Ecs/Service.cs b/sdk/dotnet/Ecs/Service.cs
index 40e8796c77..dbf1336d6d 100644
--- a/sdk/dotnet/Ecs/Service.cs
+++ b/sdk/dotnet/Ecs/Service.cs
@@ -264,6 +264,7 @@ public partial class Service : global::Pulumi.CustomResource
///
/// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.
+ /// When using the forceNewDeployment property you also need to configure the triggers property.
///
[Output("forceNewDeployment")]
public Output ForceNewDeployment { get; private set; } = null!;
@@ -504,6 +505,7 @@ public InputList CapacityProviderStr
///
/// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.
+ /// When using the forceNewDeployment property you also need to configure the triggers property.
///
[Input("forceNewDeployment")]
public Input? ForceNewDeployment { get; set; }
@@ -730,6 +732,7 @@ public InputList CapacityProvider
///
/// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.
+ /// When using the forceNewDeployment property you also need to configure the triggers property.
///
[Input("forceNewDeployment")]
public Input? ForceNewDeployment { get; set; }
diff --git a/sdk/go/aws/ecs/service.go b/sdk/go/aws/ecs/service.go
index 6207b6bc18..a7388173e7 100644
--- a/sdk/go/aws/ecs/service.go
+++ b/sdk/go/aws/ecs/service.go
@@ -253,6 +253,7 @@ type Service struct {
// Enable to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the `REPLICA` scheduling strategy.
ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"`
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+ // When using the forceNewDeployment property you also need to configure the triggers property.
ForceNewDeployment pulumi.BoolPtrOutput `pulumi:"forceNewDeployment"`
// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
HealthCheckGracePeriodSeconds pulumi.IntPtrOutput `pulumi:"healthCheckGracePeriodSeconds"`
@@ -351,6 +352,7 @@ type serviceState struct {
// Enable to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the `REPLICA` scheduling strategy.
ForceDelete *bool `pulumi:"forceDelete"`
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+ // When using the forceNewDeployment property you also need to configure the triggers property.
ForceNewDeployment *bool `pulumi:"forceNewDeployment"`
// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
HealthCheckGracePeriodSeconds *int `pulumi:"healthCheckGracePeriodSeconds"`
@@ -420,6 +422,7 @@ type ServiceState struct {
// Enable to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the `REPLICA` scheduling strategy.
ForceDelete pulumi.BoolPtrInput
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+ // When using the forceNewDeployment property you also need to configure the triggers property.
ForceNewDeployment pulumi.BoolPtrInput
// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
HealthCheckGracePeriodSeconds pulumi.IntPtrInput
@@ -493,6 +496,7 @@ type serviceArgs struct {
// Enable to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the `REPLICA` scheduling strategy.
ForceDelete *bool `pulumi:"forceDelete"`
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+ // When using the forceNewDeployment property you also need to configure the triggers property.
ForceNewDeployment *bool `pulumi:"forceNewDeployment"`
// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
HealthCheckGracePeriodSeconds *int `pulumi:"healthCheckGracePeriodSeconds"`
@@ -559,6 +563,7 @@ type ServiceArgs struct {
// Enable to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the `REPLICA` scheduling strategy.
ForceDelete pulumi.BoolPtrInput
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+ // When using the forceNewDeployment property you also need to configure the triggers property.
ForceNewDeployment pulumi.BoolPtrInput
// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
HealthCheckGracePeriodSeconds pulumi.IntPtrInput
@@ -743,6 +748,7 @@ func (o ServiceOutput) ForceDelete() pulumi.BoolPtrOutput {
}
// Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `orderedPlacementStrategy` and `placementConstraints` updates.
+// When using the forceNewDeployment property you also need to configure the triggers property.
func (o ServiceOutput) ForceNewDeployment() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Service) pulumi.BoolPtrOutput { return v.ForceNewDeployment }).(pulumi.BoolPtrOutput)
}
diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/Service.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/Service.java
index a0e56ca774..cf19d3723e 100644
--- a/sdk/java/src/main/java/com/pulumi/aws/ecs/Service.java
+++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/Service.java
@@ -456,6 +456,7 @@ public Output> forceDelete() {
}
/**
* Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.
+ * When using the forceNewDeployment property you also need to configure the triggers property.
*
*/
@Export(name="forceNewDeployment", refs={Boolean.class}, tree="[0]")
@@ -463,6 +464,7 @@ public Output> forceDelete() {
/**
* @return Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy `ordered_placement_strategy` and `placement_constraints` updates.
+ * When using the forceNewDeployment property you also need to configure the triggers property.
*
*/
public Output> forceNewDeployment() {
diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/ServiceArgs.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/ServiceArgs.java
index 41a2660238..1e0c6e4464 100644
--- a/sdk/java/src/main/java/com/pulumi/aws/ecs/ServiceArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/ServiceArgs.java
@@ -197,6 +197,7 @@ public Optional