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,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
|
||||
"task_definition": &schema.Schema{
|
||||
|
@ -131,6 +132,10 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if len(out.Services) < 1 {
|
||||
return nil
|
||||
}
|
||||
|
||||
service := out.Services[0]
|
||||
log.Printf("[DEBUG] Received ECS service %#v", service)
|
||||
|
||||
|
|
Loading…
Reference in New Issue