aws: Allow migrating (recreating) ecs_service to another cluster

This commit is contained in:
Radek Simko 2015-07-12 12:20:57 +01:00
parent 37d10ebf37
commit c72c5cebff
1 changed files with 5 additions and 0 deletions

View File

@ -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)