aws: Use ClientToken when creating ecs_service

This commit is contained in:
Radek Simko 2015-07-12 14:30:49 +01:00
parent c72c5cebff
commit 21e4b5e3cf
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func resourceAwsEcsServiceCreate(d *schema.ResourceData, meta interface{}) error
ServiceName: aws.String(d.Get("name").(string)),
TaskDefinition: aws.String(d.Get("task_definition").(string)),
DesiredCount: aws.Long(int64(d.Get("desired_count").(int))),
ClientToken: aws.String(resource.UniqueId()),
}
if v, ok := d.GetOk("cluster"); ok {