fix bug if aws_attributes is blank