mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
aws: Allow migrating (recreating) ecs_service to another cluster
This commit is contained in:
parent
37d10ebf37
commit
c72c5cebff
@ -36,6 +36,7 @@ func resourceAwsEcsService() *schema.Resource {
|
|||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"task_definition": &schema.Schema{
|
"task_definition": &schema.Schema{
|
||||||
@ -131,6 +132,10 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(out.Services) < 1 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
service := out.Services[0]
|
service := out.Services[0]
|
||||||
log.Printf("[DEBUG] Received ECS service %#v", service)
|
log.Printf("[DEBUG] Received ECS service %#v", service)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user